<?php
class Uploader extends CActiveRecord
{
	public function init(CActiveRecord $model, $config)
	{
		$this->_model = $model;
		
		$this->initnized ( $config );
		
		if (isset ( $this->maxsize ))
		{
			$this->maxsize = ini_get ( 'upload_max_size' );			
		}
	}
	public function ln($config)
	{
		foreach ( $config as $name => $value )
			$this->$name = $value;
	}
	public function resurce($config)
	{
		foreach ( $config as $name => $value )
			if (is_array ( $value ))
			{
				self::resurce ( $value );
			} else
			{
				$this->$name = $value;
			}
	}
	public function handle()
	{
	}
}
?>